﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using ElMexicanos.Base.Models;
using Microsoft.Xna.Framework.Graphics;
using ElMexicanos.Components.TowersTraps.Globals;

namespace ElMexicanos.Components.TowersTraps
{
    class TowerSpicy : Tower
    {

        //// GLOBALS ////
        private int ATTACK = 10;
        private int DEFENSE = 20;
        private int PV = 20;

        //// ENUMS ////

        //// ATTRIBUTES ////
        //// SPRITES ////
        private AnimSprite loadingSprite;
        private AnimSprite shootingSprite;
        private AnimSprite ownedSprite;
        private AnimSprite upgradingSprite;

        //// METHODS ////

        //Constructor
        public TowerSpicy(Vector2 position)
            : base(position)
        {
            Attackpoints = ATTACK;
            Defensepoints = DEFENSE;
            Pvpoints = PV;

            WaitingSprite = new AnimSprite(new AnimDefinition()
            {
                AssetName = "TowersTraps/Towers/tower",
                FrameRate = 8,
                FrameSize = new Point(118, 118),
                Loop = true,
                NbFrames = new Point(4, 2)
            }, new Vector2(this.Position.X, this.Position.Y));


        }

        public void SearchMob(List<Mob> all_mobs)
        {
            foreach (Mob mob in all_mobs)
            {
                //mob.position;
                //

            }
        }

        public void Shoot(Mob mob)
        {
            
            Missile missile = new Missile(new Vector2(Position.X, Position.Y));
            /*
            while(missile.goTo(new Vector2(mob.Position.X, mob.Position.Y))){
                
            }*/

            

        }

        public void SpecialShoot()
        {

        }

        public void MoveTo()
        {

        }

        public void UpdateLevel()
        {

        }

        public void Destroy()
        {

        }


        ////XNA METHODS ///

    }
}
